#pragma once
#include <windows.h>
#include <iweardrv.h>
#include <iwrstdrv.h>

#define IWR_STEREO_AND_TRACKING 0
#define IWR_TRACKING 1
#define IWR_STEREO 2
#define IWR_OFF 3


/** @class VuzixGlasses
 *  @author Cyril Caillaba
 *  @brief Classe de gestion des lunettes Vuzix VR920
 */
class VuzixGlasses {

public :

    static VuzixGlasses * getLunettesInstance();
    ~VuzixGlasses();

    int init(bool stereoscopy = true, bool tracking = true);
    void setLeft();
    void setRight();
    bool getTracking(LONG *yaw, LONG *pitch, LONG *roll);

private :

	static VuzixGlasses * lunettesInstance;
	VuzixGlasses();
    HANDLE IWRStereoHandle;

};
